public class FindMaxNumberAndPosition {
    public static void main(String[] args) {
        int[] numbers = {1, 20, 4, 21, 45};
        int maxNumber = numbers[0];
        int position = 0;
        
        for (int i = 1; i < numbers.length; i++) {
            if (numbers[i] > maxNumber) {
                maxNumber = numbers[i];
                position = i;
            }
        }
        
        System.out.println("最大的数字是: " + maxNumber + "，位置是: " + position);
    }
}